package com.nightsoul.zxing.test;

import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;

class JCommanderMain {
    @Parameter(names={"--length", "-l"})
    int length;
    @Parameter(names={"--pattern", "-p"})
    String pattern;
 
    public static void main(String[] args) {
        JCommanderMain main = new JCommanderMain();
        new JCommander(main, args);
        main.run();
    }
 
    public void run() {
        System.out.printf("%d %s", length, pattern);
    }
}